home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / The Hacks / Palm Finder 2 / Src / Views / view.h < prev   
Encoding:
Text File  |  2001-06-23  |  573 b   |  28 lines

  1. // view.h
  2.  
  3. #include "pane.h"
  4.  
  5. #define PILOT_PRECOMPILED_HEADERS_OFF
  6. #include <Pilot.h>
  7.  
  8. #pragma once
  9.  
  10. class view: public pane {
  11. public:
  12.                     view(RectangleType* in_bounds, view* in_superview);
  13.                     view(view* in_superview);
  14.                     view();
  15.     virtual        ~view();
  16.     
  17.     pane*        get_subpanes() { return m_subpanes; };
  18.     void            set_subpanes(pane* in_pane) { m_subpanes = in_pane; };
  19.     
  20.     virtual void        draw(); 
  21.     virtual Boolean    click(int x, int y); 
  22.     virtual Boolean    still_down(int x, int y); 
  23.     virtual Boolean    pen_up(int x, int y); 
  24.     virtual void        idle();
  25.  
  26. protected:
  27.     pane* m_subpanes;
  28. };